//package com.bigdata.demo.config;
//
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.mybatis.spring.SqlSessionFactoryBean;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
///**
// * Created by root on 2/26/18.
// */
//@Configuration
//@MapperScan(basePackages = "com.bigdata.demo.repository")
//public class MysqlMybatisConfig {
//
//    @Autowired
//    @Qualifier("mysqlds")
//    private DataSource mysqlds;
//
//    @Bean
//    public SqlSessionFactory sqlSessionFactoryBean() throws Exception {
//        final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
//        sessionFactory.setDataSource(mysqlds);
//        return sessionFactory.getObject();
//    }
//}